package com.school.campus.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.school.common.annotation.Excel;
import com.school.common.core.domain.BaseEntity;

/**
 * 座位信息对象 seat
 * 
 * @author wwj
 * @date 2025-10-31
 */
public class Seat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 座位编号 */
    @Excel(name = "座位编号")
    private String number;

    /** 状态：0-空闲，1-有人 */
    @Excel(name = "状态：0-空闲，1-有人")
    private Long status;

    /** 所属自习室ID */
    @Excel(name = "所属自习室ID")
    private Long studyRoomId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setStudyRoomId(Long studyRoomId) 
    {
        this.studyRoomId = studyRoomId;
    }

    public Long getStudyRoomId() 
    {
        return studyRoomId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("status", getStatus())
            .append("studyRoomId", getStudyRoomId())
            .toString();
    }
}
